package com.dtm.server;

import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;

public class RefuseServerSubThread extends Thread{
	
	private Socket socket;

	public RefuseServerSubThread(Socket socket) {
		this.socket = socket;
	}
	@Override
	public void run() {
		try {
			DataOutputStream output = new DataOutputStream(socket.getOutputStream());
			output.writeUTF("Server full");
			socket.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}
}